﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Account.Model
{
    public class ConsumeRecord
    {
        public string Date { get; set; }
        public string Type { get; set; }
        public float Value { get; set; }

        public static explicit operator ConsumeRecord(DataAccessLibrary.ConsumeRecord consumeRecord)
        {
            return new ConsumeRecord()
            {
                Date = consumeRecord.Date.ToString("yy/MM/dd"),
                Type = consumeRecord.Type,
                Value = consumeRecord.Value
            };
        }

        public static explicit operator DataAccessLibrary.ConsumeRecord(ConsumeRecord consumeRecord)
        {
            return new DataAccessLibrary.ConsumeRecord()
            {

            };
        }
    }
}
